const conn = require('../../libs/DB/Conn');
const operationRecord = require("../sys/operationRecordAction");
module.exports = async function (params) {
     let updateSql = `UPDATE domain_file SET delete_sign = 2 WHERE domain_id IN (?);
                      UPDATE user_file SET delete_sign = 2 WHERE domain_id IN (?);
                      UPDATE user_group SET delete_sign = 2 WHERE domain_id IN (?);`;
     await conn(updateSql, [params.domainIds,params.domainIds,params.domainIds]);
     await operationRecord(params);
     return {success: true}
};